#ifndef CpTrack_h
#define CpTrack_h

#include <TObject.h>
#include <TClonesArray.h>
#include "CpPoint.h"

class CpTrack : public TObject {
public:
   CpTrack(const Int_t &index = 0);
   ~CpTrack();

   void  Print();


   CpPoint *AddPoint(const Double_t &x, const Double_t &y, const Double_t &z, const Double_t &time);
   CpPoint *GetPoint(const Int_t &index) { return (CpPoint*) fPoints.At(index);}
   Long64_t GetNumberOfPoints() { return fNumberOfPoints; }

   void SetIndex(const Int_t &index) {fIndex = index;};

   void SimulatePoints();
private:

   Int_t         fIndex;
   Long64_t      fNumberOfPoints;
   TClonesArray  fPoints;


   ClassDef(CpTrack, 1);
};

#endif
